/********************************************************************************
*																				*
*  Las Venturas Playground - Handlers/race.nut									*
*																				*
*  The race handler will be located here.										*
*																				*
********************************************************************************/

function onPlayerCommand(playerid, command)
{
	local cmd = split(command, " ");	
		
	// Command: /race
	// Params: void
	// Author: Sander
	
	if(cmd[0] == "/race")
	{
		local checkpoint;
		checkpoint = createCheckpoint (7, -36.783718, 1167.654663, 14.308326, -250.087738, 1167.173340, 14.308220, 2.5);		
		checkpoint = createCheckpoint (6, -250.087738, 1167.173340, 14.308220, -261.281616, 1257.932861, 24.249920, 2.5);
		checkpoint = createCheckpoint (6, -261.281616, 1257.932861, 24.249920, -440.467743, 1263.221924, 19.203602, 2.5);
		checkpoint = createCheckpoint (6, -440.467743, 1263.221924, 19.203602, -453.888123, 1096.341797, 9.486923, 2.5);
		checkpoint = createCheckpoint (6, -453.888123, 1096.341797, 9.486923, -36.783718, 1167.654663, 14.308326, 2.5);
		sendPlayerMessage(playerid, "Race shizzle", 0xFFFFFFFF, true);
		showCheckpointForAll(checkpoint);
		return 1;
	}	
}

addEvent("playerCommand", onPlayerCommand);